public class Type {
	String name;
	double total_score;
	int count;

	public Type(String name) {
		this.name=name;
	}
	public Type(String name, Item[] items) {
		this.name=name;
		for(Item item : items) {
			total_score+=item.getScore();
			count++;
		}

	}
	public void addItem(Item item) {
		total_score+=item.getScore();
		count++;
	}
	public void removeItem(Item item) {
		total_score-=item.getScore();
		count--;
	}
	public String getName() { return name; }

	public double getScore() { return total_score/count; }
}
